//
//  XGL_GuideViewViewController.swift
//  ProductNumberOne
//
//  Created by ios on 2024/4/22.
//

import UIKit

class XGL_GuideViewViewController: UIViewController {

    typealias GuideCompleteBlock = ()->Void
    
    var completeHandler: GuideCompleteBlock?
    
    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.backgroundColor = .white
        
        let XGL_GuideView = XGL_GuideView()
        XGL_GuideView.showGuide {
            self.dismiss(animated: false)
            if let block = self.completeHandler{
                block()
            }
        }
        self.view.addSubview(XGL_GuideView)
        XGL_GuideView.snp.makeConstraints { make in
            make.edges.equalToSuperview()
        }
    }

}
